package com.product.controller.vo;

import com.common.valid.annotation.DateFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @program: Member_Perks_Store
 * @description: 权益商品详细创建Vo
 * @author: 无恙
 * @create: 2024-06-18 21:38
 **/

@Data
@NoArgsConstructor
public class equityVo {
    //代理人ID
    private Long agentId;
    @NotBlank(message = "支付方式不能为空,请选择支付")
    //支付方式
    private Integer payMethod;

    //积分数量
    private Integer pointsPrice;
    //现金价格
    private String cashPrice;
    //权益类型
    private Integer raiType;
    //富文本
    private String richText;
    @NotBlank(message = "兑换限制不能为空")
    //兑换x限制
    private Integer exchangeRestrictions;

    @NotBlank(message = "库存不能为空")
    private Integer inStock;

    //商品图片
    @NotBlank(message = "商品图片不能为空")
    private String productPicture;
    //展示时间
    @NotBlank(message = "展示时间不能为空")
    private Date showTime;
    //上线时间
    @NotBlank(message = "上线时间不能为空")
    @DateFormat(format ="yyyy-MM-dd HH:mm:ss",message = "上线时间格式不正确")
    private Date timeOn;
    //下线时间
    @NotBlank(message = "上线时间不能为空")
    @DateFormat(format ="yyyy-MM-dd HH:mm:ss",message = "上线时间格式不正确")
    private Date timeOff;
    //城市白名单
    private String cityWhitelist;
    //城市黑名单
    private String cityBlacklist;
    //商品名字
    @NotBlank(message = "商品名字不能为空")
    @Length(min = 2,max = 20,message = "商品名字长度应在2-20之间")
    private String name;

    //商品分类ID
    @NotBlank(message = "商品分类ID不能为空")
    private Long categoryId;
    //商品头图
    private String picture;
    //备注
    private String remark;
    //供应商名字
    @NotBlank(message = "供应商名字不能为空")
    private String supplierName;
    //联系方式
    @NotBlank(message = "联系方式不能为空")
    private String supplierPhone;
    //服务保障
    private String supplierService;
}
